function A() {
  return new Promise((resole) => {
    setTimeout(() => {
      resole(3);
    });
  });
}

async function B() {
  const b = await A();
  const c = await A();
  return b + c;
}

B().then((res) => console.log(res));
